<template>
  <div class="login-container">
    <div class="box">
      <div class="c-box">
        <one-chart />
      </div>
      <div>
        <two-chart />
      </div>
    </div>
  </div>
</template>

<script>
import OneChart from '../components/gradeOneChart'
import TwoChart from '../components/gradeTwoChart'

export default {
  name: 'LoginIndex',
  components: {
    OneChart,
    TwoChart
  },
  props: {},
  data() {
    return {}
  },
  computed: {},
  watch: {},
  created() {},
  mounted() {
    window.onresize = () => {
      //  根据窗口大小调整曲线大小
      this.$echarts.init(document.getElementById('gradeOneChart')).resize()
      this.$echarts.init(document.getElementById('gradeTwoChart')).resize()
    }
  },
  methods: {}
}
</script>

<style scoped lang="scss">
.login-container{
  padding-top: 20px;
}
.box {
  width: 100%;
  height: 550px;
  // background-color:rgb(207, 235, 247);
  display: flex;
  padding-top: 20px;
  div {
    width: 100%;
    box-shadow: 1px 1px 3px rgb(0 0 0 / 20%);
    background-color: #fff;
    border-radius: 20px;
  }
}

</style>

